import 'package:eplorex/pages/message/group/group_discovery_page.dart';
import 'package:flutter/material.dart';

import 'dafault_page.dart';

class IndexNavigatorItem {
  final String? imageUrl;
  final String? title;
  final Function(BuildContext context)? onTap;

  IndexNavigatorItem(this.imageUrl, this.title, this.onTap);
}

List<IndexNavigatorItem> navigatorItems = [
  IndexNavigatorItem('assets/dazi.png', "搭子", (BuildContext context) {
    Navigator.of(context).push(
        MaterialPageRoute(builder: (BuildContext context) => DefaultPage()));
  }),
  IndexNavigatorItem('assets/quanzi.png', "探索圈子", (BuildContext context) {
    Navigator.of(context).push(
        MaterialPageRoute(builder: (BuildContext context) => GroupDiscoveryPage()));
  }),
  IndexNavigatorItem('assets/kechen.png', "自律课程", (BuildContext context) {
    Navigator.of(context).push(
        MaterialPageRoute(builder: (BuildContext context) => DefaultPage()));
  }),
  IndexNavigatorItem('assets/tiaozhan.png', "挑战", (BuildContext context) {
    Navigator.of(context).push(
        MaterialPageRoute(builder: (BuildContext context) => DefaultPage()));
  }),
];
